package com.pb.infra.oth.exception;

import lombok.Getter;

public class BizException extends RuntimeException {

    @Getter
    private String code = "B001";

    public BizException(String message) {
        super(message);
    }

    public BizException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }
}
